<extend name="Base/common"/>
<block name="css">
    <link rel="stylesheet" href="__CSS__/login.css">
    <link rel="stylesheet" href="__CSS__/weixin.css">
</block>
<block name="body">

    <div class="loginWrap">
        <div class="logoBox">
            <div class="maskBox">
                <img src="__IMG__/logo.png" alt="">
            </div>
        </div>
        <div class="formWrap">
            <div class="content-block">
                <div class="content-block">
                    <if condition="$tip eq 'exist'">
                        <form method="post" data-role="form" data-url="{:U('Weixin/Index/existLogin')}">
                            <div class="loginInput">
                                <!--<input placeholder="手机号或邮箱" type="text" name="username" value="">-->
                                <input placeholder="手机号" type="text" name="username" value="">
                            </div>
                            <div class="loginInput">
                                <input placeholder="密码" type="password" name="password">
                            </div>
                            <div class="btnWrap">
                                <a href="#" data-role="weixin_login" class="comBtn">绑定</a>
                            </div>
                        </form>

                        <else/>
                        <form method="post" data-role="form" data-url="{:U('Weixin/Index/newAccount')}">
                            <div class="loginInput">
                                <!--<input placeholder="手机号或邮箱" type="text" name="username" id="text" value="">-->
                                <input placeholder="手机号" type="text" name="username" id="text" value="">
                            </div>
                            <div class="loginInput">
                                <input placeholder="昵称" type="text" name="nickname" id="nickname">
                            </div>
                            <div class="loginInput">
                                <input placeholder="密码" type="password" name="password" id="password">
                            </div>
                            <div class="btnWrap">
                                <a href="#" data-role="weixin_reg" class="comBtn">注册新账号</a>
                            </div>
                        </form>
                    </if>
                    <div class="vxbtnWrap">
                        <a href="{:U('Ucenter/Member/weixin_bind',array('tip'=>'new'))}" class="forgot">注册新账号</a>
                        <span>|</span>
                        <a href="{:U('Ucenter/Member/weixin_bind',array('tip'=>'exist'))}" class="forgot">绑定已有账号</a>
                        <span>|</span>
                        <a href="{:U('Weixin/Index/unbind')}" class="forgot">不绑定</a>

                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="script">
    <script src="__JS__/weixin_bind.js"></script>
</block>
